package com.xxxx.factory;

import com.xxxx.dao.UserDao;
import com.xxxx.dao.impl.UserDaoImpl;
import org.springframework.beans.factory.FactoryBean;

/**
 * Created By ShaoXikai on 2022/7/18
 */
public class UserDaoFactoryBean implements FactoryBean<UserDao> {

    @Override
    public UserDao getObject() {
        return new UserDaoImpl();
    }

    @Override
    public Class<UserDao> getObjectType() {
        return UserDao.class;
    }
    // default不用重写
}
